Filters
Year Range
20212025
2021
2022
2024
2025
Difficulty
Session
Variant
Sub-topic
51 questions
Computer Science/Paper 1/Processor Fundamentals
CAIEAS Level9618-as · Paper 1

Processor Fundamentals

51 questions· page 1 of 6

Q82025 May/Jun·P114 partsMedium
(a)

The following table shows part of the instruction set for a processor. The processor has two registers: the Accumulator (ACC) and an Index Register (IX).

InstructionExplanation
OpcodeOperand
LDM#nImmediate addressing. Load the number n to ACC
LDD<address>Direct addressing. Load the contents of the location at the given address to ACC
LDI<address>Indirect addressing. The address to be used is at the given address. Load the contents of this second address to ACC
INC<register>Add 1 to the contents of the register (ACC or IX)
STO<address>Store the contents of ACC at the given address
ADD#n/Bn/&nAdd the number n to the ACC
DEC<register>Subtract 1 from the contents of the register (ACC or IX)
JMP<address>Jump to the given address
CMP<address>Compare the contents of ACC with the contents of <address>
JPE<address>Following a compare instruction, jump to <address> if the compare was True
ENDReturn control to the operating system

ACC denotes Accumulator
<address> can be an absolute or a symbolic address

denotes a denary number, e.g. #123

B denotes a binary number, e.g. B01001010
& denotes a hexadecimal number, e.g. &4A

The current contents of memory are:

addressInstruction
8010
818
8280
8381
...
200LDD 81
201INC ACC
202STO 83
203LDI 82
204CMP 83
205JPE 209
206LDD 83
207ADD #10
208JMP 210
209DEC ACC
210STO 81
211END

Trace the program currently in memory using the following trace table.

Instruction addressACCMemory address
80818283
1088081
(b)(i)

Write the bit manipulation instruction that can be used to set the least significant bit to 1 in an 8-bit register. All other bits must remain unchanged.

The instruction needs to work on a register that contains any 8-bit binary number.

(b)(ii)

The ACC currently contains the following binary value.

01010101

Write the result after the instruction XOR &FE is run.

(b)(iii)

The ACC currently contains the following binary value.

01101011

Write the result after the instruction LSR #5 is run.

Similar questions
Q12025 May/Jun·P123 partsMedium-Easy
(a)

The table has six statements about the Von Neumann model for a computer system.
Three of the statements are incorrect.

Statement numberStatement
1The Program Counter (PC) stores the next instruction to be fetched from memory.
2The Arithmetic and Logic Unit (ALU) performs mathematical and logical operations.
3The Control Unit (CU) sends signals to other components on the data bus.
4The Memory Data Register (MDR) transfers data to the memory address stored in the Memory Address Register (MAR).
5The MAR stores an address from memory.
6The Accumulator (ACC) stores the result of calculations.

Complete the table by writing the three incorrect statement numbers and the corrected statements.

Incorrect statement numberCorrected statement
..........................................................................................................................................................
...........................................................................................................................
...........................................................................................................................
..........................................................................................................................................................
...........................................................................................................................
...........................................................................................................................
..........................................................................................................................................................
...........................................................................................................................
...........................................................................................................................
(b)

Registers that are used in the Fetch-Execute (F-E) cycle include the PC, MAR, MDR and the ACC.

Identify one other register and describe its role in the Fetch-Execute (F-E) cycle.

Register ....................................................................................................................................

Role ..........................................................................................................................................

...................................................................................................................................................

(c)

Explain how an interrupt from an input device will be detected and handled in the F-E cycle.

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

.............................................................................................................................................

Similar questions
Q72025 May/Jun·P125 partsMedium
(a)(i)

Trace the program currently in memory using the following trace table.

Instruction addressACCMemory address
1011121314
1211102222
(a)(ii)

State the effect of changing instruction LDD 10 in address 100 to LDM #10

...........................................................................................................................................

...........................................................................................................................................

.....................................................................................................................................

(a)(iii)

Identify and describe one mode of addressing not given in the table of instructions in part (a).

Mode of addressing ...........................................................................................................

Description ........................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

(b)(i)

The ACC currently contains the following binary value.

11110000

Write the result after the instruction OR B00001111 is run.

(b)(ii)

The ACC currently contains the following binary value.

00011101

Write the result after the instruction XOR #30 is run.

Similar questions
Q22025 May/Jun·P134 partsMedium-Easy
(a)(i)

Explain how the CU and the system clock work together.

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

.....................................................................................................................................

(a)(ii)

The processor runs the Fetch-Execute (F-E) cycle.

Write the stages of the F-E cycle using register transfer notation.

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

...........................................................................................................................................

.....................................................................................................................................

(b)

The computer has cache memory.

Describe one benefit of the computer using cache memory.

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

.............................................................................................................................................

(c)

The computer connects to a monitor using a High Definition Multimedia Interface (HDMI) cable that connects into an HDMI port.

Explain how HDMI provides connection to peripheral devices.

...................................................................................................................................................

...................................................................................................................................................

...................................................................................................................................................

.............................................................................................................................................

Similar questions
Q52025 May/Jun·P133 partsMedium
(a)(i)

Trace the program currently in memory using the following trace table.

Instruction addressACCMemory address
50515253
47484950
(a)(ii)

Complete the table by identifying and describing two modes of addressing that are not used in the program in part (a).

Mode of addressingDescription
...................................................................................................................................
................................................................................
................................................................................
................................................................................
...................................................................................................................................
................................................................................
................................................................................
................................................................................
(b)

The table shows part of the instruction set for a processor. The processor has one register: the Accumulator (ACC).

InstructionExplanation
OpcodeOperand
AND#n/Bn/&nBitwise AND operation of the contents of ACC with the operand
AND<address>Bitwise AND operation of the contents of ACC with the contents of <address>
XOR#n/Bn/&nBitwise XOR operation of the contents of ACC with the operand
XOR<address>Bitwise XOR operation of the contents of ACC with the contents of <address>
OR#n/Bn/&nBitwise OR operation of the contents of ACC with the operand
OR<address>Bitwise OR operation of the contents of ACC with the contents of <address>

<address> can be an absolute or a symbolic address

denotes a denary number, e.g. #123

B denotes a binary number, e.g. B01001010
& denotes a hexadecimal number, e.g. &4A

Write the bit manipulation instructions that can be used to set only the most significant bit to 1 in an 8-bit register.

The instructions need to work on a register that contains any 8-bit binary number.

...................................................................................................................................................

.............................................................................................................................................

Similar questions
Q42025 Oct/Nov·P114 partsEasy
(a)

The ACC currently contains the following positive binary integer:

00011110

Write a bit manipulation instruction that uses a binary shift to change the contents of the ACC to:

01111000

Instruction ...........................................................................................................................

(b)

The ACC currently contains the following positive binary integer:

11100011

Write the contents of the ACC after the instruction XOR &12 is carried out.

(c)

The ACC currently contains the following positive binary integer:

11100011

Write the contents of the ACC after the instruction AND #63 is carried out.

(d)

The ACC currently contains the following positive binary integer:

11100011

The current contents of memory are:

AddressData
9800100100
9900110001
10000110011
10110100011
10210101100

Write the contents of the ACC after the instruction OR 100 is carried out.

Similar questions
Q32025 Oct/Nov·P124 partsEasy
(a)(i)

State what is meant by relative addressing.

(a)(ii)

Registers such as the Accumulator (ACC) and the Index Register (IX) are used in the CPU.

Identify two special purpose registers used in the CPU. Do not include the ACC or IX in your answers.

1 .........................................................................................................................................

2 .........................................................................................................................................

(b)

The following table shows part of the instruction set for a processor. The processor has two registers: the ACC and an IX.

| Instruction | Explanation |
| :--- | :--- | :--- |
| Opcode | Operand | |
| LDM | #n | Immediate addressing. Load the number n to ACC |
| LDD | <address> | Direct addressing. Load the contents of the location at the given address to ACC |
| LDI | <address> | Indirect addressing. The address to be used is at the given address. Load the contents of this second address to ACC |
| LDX | <address> | Indexed addressing. Form the address from <address> + the contents of the index register. Copy the contents of this calculated address to ACC |
| LDR | #n | Immediate addressing. Load the number n to IX |

<address> can be an absolute or symbolic address
# denotes a denary number, e.g. #127

The current contents of the main memory and the index register are shown.

AddressInstruction
988
9916
1003
10198
10232
IX2

Write the contents of the ACC after each instruction is executed.

InstructionValue in ACC
LDM #98
LDI 101
LDX 100
(c)

A student buys a new computer. The table shows the specifications of the old computer and the new computer.

Old computerNew computer
1.8 GHz dual core processor2.3 GHz dual core processor
16 MB cache32 MB cache

Explain why increasing the clock speed and increasing the cache memory will improve the performance of the computer.

Clock speed ..............................................................................................................................

Cache memory ..........................................................................................................................

Similar questions
Q62025 Oct/Nov·P133 partsMedium-Easy
(a)

Complete the table by writing the contents of the ACC after the execution of each instruction.

Current contents of the ACCInstructionContents of the ACC after the execution of the instruction
0000 1111AND 101
0000 0000LDM #100
0000 0001XOR &F1
0001 0001CMP 101
(b)

The Von Neumann model for a computer system uses registers.

Describe the role of the Memory Address Register (MAR) and Memory Data Register (MDR) in the fetch-execute (F-E) cycle.

(c)

Assembly language instructions are grouped.

Complete each statement by writing the name of the appropriate instruction group.

Loading data into the accumulator is an example of an instruction in the ............................................................... group.

Incrementing the index register is an example of an instruction in the ............................................................... group.

Branching to another address is an example of an instruction in the ............................................................... group.

Similar questions
Q42024 May/Jun·P112 partsMedium
(a)

The current contents of memory are shown:

AddressData
1924
202
211
223
235
244
2522

The current contents of the ACC and IX are shown:

ACC12
IX1

Complete the table by writing the content of the ACC after each program has run.

Program numberCodeACC content
1LDD 20
ADD #2
2LDX 22
3LDI 25
INC ACC
SUB 22
4LDD 19
LDM #5
LDM #25
(b)

The processor includes these bit manipulation instructions:

InstructionExplanation
OpcodeOperand
AND#n/Bn/&nBitwise AND operation of the contents of ACC with the operand
AND<address>Bitwise AND operation of the contents of ACC with the contents of <address>
XOR#n/Bn/&nBitwise XOR operation of the contents of ACC with the operand
XOR<address>Bitwise XOR operation of the contents of ACC with the contents of <address>
OR#n/Bn/&nBitwise OR operation of the contents of ACC with the operand
OR<address>Bitwise OR operation of the contents of ACC with the contents of <address>

<address> can be an absolute or a symbolic address

denotes a denary number, e.g. #123

B denotes a binary number, e.g. B01001010
& denotes a hexadecimal number, e.g. &4A

The current contents of memory are shown:

AddressData
3001110101
3111111111
3200000000
3311001100
3410101010

The current content of the ACC is shown:

10011010

Complete the table by writing the content of the ACC after each program has run.

The binary number 10011010 is reloaded into the ACC before each program is run.

Program numberCodeACC content
1AND 31
2XOR B01001111
3OR #30
Similar questions
Q52024 May/Jun·P122 partsMedium
(a)

The current contents of memory are shown:

AddressData
101
113
125
1311
1410
1516
1612

The current contents of the ACC and IX are shown:

ACC: 10
IX: 0

Complete the table by writing the content of the ACC after each program has run.

Program numberCodeACC content
1LDI 15
SUB #1
2LDD 14
ADD 11
3LDM #11
ADD #3
SUB 16
4LDR #2
LDX 14
ADD #2
(b)

The processor includes these bit manipulation instructions:

InstructionExplanation
OpcodeOperand
AND#n/Bn/&nBitwise AND operation of the contents of ACC with the operand
AND<address>Bitwise AND operation of the contents of ACC with the contents of <address>
XOR#n/Bn/&nBitwise XOR operation of the contents of ACC with the operand
XOR<address>Bitwise XOR operation of the contents of ACC with the contents of <address>
OR#n/Bn/&nBitwise OR operation of the contents of ACC with the operand
OR<address>Bitwise OR operation of the contents of ACC with the contents of <address>

<address> can be an absolute or a symbolic address

denotes a denary number, e.g. #123

B denotes a binary number, e.g. B01001010
& denotes a hexadecimal number, e.g. &4A

The current contents of memory are shown:

AddressData
2511000110
2611100001
2710000001
2811001101
2900001111

The current content of the ACC is shown:

| 0 | 1 | 0 | 0 | 0 | 1 | 1 | 0 |

Complete the table by writing the content of the ACC after each program has run.

The binary number 01000110 is reloaded into the ACC before each program is run.

Program numberCodeACC content
1XOR 29
2AND #29
3OR B11111111
Similar questions